import { Component,} from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

/**
 * Generated class for the BalanceRechargePage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-balance-recharge',
  templateUrl: 'balance-recharge.html',
})
export class BalanceRechargePage {
	//判断输入框是否为空；
	state : number;
	constructor(public navCtrl: NavController, public navParams: NavParams) {
	}

	ionViewDidLoad() {
		console.log('ionViewDidLoad BalanceRechargePage');
	}
	//检测输入
	inputNum(text){
		text.value == '' || parseFloat(text.value) < 0.01 ? this.state = 0 : this.state = 1;
	}
	//支付
	next(text){
		
	}
}
